//
//  NavOrderlistModel.h
//  ebook
//
//  Created by mt on 17/1/20.
//  Copyright © 2017年 Moton. All rights reserved.
//

#import "NavOrderlistModel.h"

@implementation NavOrderlistModel

-(id)initWithDictionary:(NSDictionary *)dic{
    
    self = [super init];
    if (self) {
        NSArray *keys = [dic allKeys];
        self.bookid = dic[[keys containsObject:@"bookid"]?@"bookid":@"Id"];
        self.bookname = dic[[keys containsObject:@"bookname"]?@"bookname":@"Name"];
        self.author = dic[[keys containsObject:@"author"]?@"author":@"Author"];
        self.coverpicurl = dic[[keys containsObject:@"coverpicurl"]?@"coverpicurl":@"Coverimg"];
        self.sortname = dic[@"sortname"];
        self.fullflag = dic[[keys containsObject:@"fullflag"]?@"fullflag":@"Fullflag"];
        self.introduction = dic[@"introduction"];
    }
    return self;
}

@end

